/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import javax.persistence.Entity;

/**
 *
 * @author woutermkievit
 */
@Entity
@PrimaryKeyJoinColumn(name="ucode", referencedColumnName="ucode")
@Table(name="Teacher")
public class Teacher extends Gebruiker{
    
    
    
    @Column (name = "is_admin")
    private Boolean is_admin;
    
    public Teacher(String uCode,String email, String firstName , String insertion, String lastName, String password,Boolean is_admin) {
        super(uCode, email, firstName, insertion, lastName, password);
        this.is_admin = is_admin;
    }

    public Teacher() {
    }

    public Boolean getIs_admin() {
        return is_admin;
    }

    public void setIs_admin(Boolean is_admin) {
        this.is_admin = is_admin;
    }
    public Gebruiker getUser() {
        return new Gebruiker(getuCode(),getEmail(),getFirstName(),getInsertion(),getLastName(),getPassword());
    }
}